//
//  test.h
//  test
//
//  Created by ming wang on 12-3-7.
//  Copyright (c) 2012年 mingrui. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DatePicker : UIView
<UITextFieldDelegate>{
    UIButton* btnDate;//文本框
    UIDatePicker* datePicker;//日期选择控件
    NSDateFormatter *dateFormatter;//日期格式
    UIDatePickerMode datePickerMode;//日期控件显示风格
    NSDate* date;
    UIView* subview;
}
@property(nonatomic) UIDatePickerMode datePickerMode;
//@property(nonatomic,retain)UITextField* textField;
@property(nonatomic,retain)NSDateFormatter* dateFormatter;
@property(nonatomic,retain)NSDate* date;
//@property(nonatomic,retain)UIDatePicker* datePicker;
-(UIDatePickerMode)datePickerMode;
-(void)setDatePickerMode:(UIDatePickerMode)mode;
-(NSDateFormatter*)dateFormatter;
-(void)setDateFormatter:(NSDateFormatter *)df;
-(NSDate*)date;
-(void)setDate:(NSDate*)d;
-(UIButton*)btnDate;
-(UIDatePicker*)datePicker;
-(void)clickdate:(id)sender;
-(NSInteger)getSubViewTag;
-(void)showSubView;
@end
